package com.martin.lib_base.bean

/**
 * @desc：表情数据类
 */
class EmojiBean(
    val code: Int,
) {

    /**
     * 解析为emoji表情字符串
     */
    fun parseToKey(): String {
        val chars = Character.toChars(code)
        val key = StringBuilder(chars[0].toString())
        for (i in 1 until chars.size) {
            key.append(chars[i])
        }
        return key.toString()
    }

}